import RouterView from '@/components/MyRouterView/index.vue';
/**
 * 所有组件都在 @/views/nav/nav001/下
 * 命名都需要按照这个规则配置
 * name 记录了路由细信息
 */
export default [
    {
        path: '/tool',
        name: 'tool',
        meta: { title: '工具库的封装' },
        component: RouterView,
        redirect: '/tool/bar001/page001',
        children: [
            {
                path: 'bar001',
                name: 'toolbar001',
                meta: { title: '01 封装' },
                component: RouterView,
                redirect: '/tool/bar001/page001',
                children: [
                    {
                        path: 'page001',
                        name: 'toolbar001page001',
                        meta: { title: '01.cesium 绘制、测量点线面' },
                        component: () => import('@/views/tool/bar001/page001/index.vue'),
                    },
                    {
                        path: 'page002',
                        name: 'toolbar001page002',
                        meta: { title: '02.cesium 坡度坡向分析' },
                        component: () => import('@/views/tool/bar001/page002/index.vue'),
                    },
                    {
                        path: 'page003',
                        name: 'toolbar001page003',
                        meta: { title: '03.cesium 淹没分析' },
                        component: () => import('@/views/tool/bar001/page003/index.vue'),
                    },
                    {
                        path: 'page004',
                        name: 'toolbar001page004',
                        meta: { title: '04.进一步优化绘制' },
                        component: () => import('@/views/tool/bar001/page004/index.vue'),
                    },
                ],
            },
            {
                path: 'bar002',
                name: 'toolbar002',
                meta: { title: '02 研究demo' },
                component: RouterView,
                redirect: '/tool/bar002/page001',
                children: [
                    {
                        path: 'page001',
                        name: 'toolbar002page001',
                        meta: { title: '01.LabelPrimitive 探究' },
                        component: () => import('@/views/tool/bar002/page001/index.vue'),
                    },
                ],
            },
            {
                path: 'bar003',
                name: 'toolbar003',
                meta: { title: '03 自定义MaterialProperty' },
                component: RouterView,
                redirect: '/tool/bar003/page001',
                children: [
                    {
                        path: 'page001',
                        name: 'toolbar003page001',
                        meta: { title: '01. 基本实现' },
                        component: () => import('@/views/tool/bar003/page001/index.vue'),
                    },
                    {
                        path: 'page002',
                        name: 'toolbar003page002',
                        meta: { title: '02. 动态线' },
                        component: () => import('@/views/tool/bar003/page002/index.vue'),
                    },
                ],
            },
        ],
    },
];
